home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
394
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
2KB
Path: monkeys.com!not-for-mail
From: rfg@monkeys.com (Ronald F. Guilmette)
Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp,comp.std.c
Subject: Re: float != float and floats as return types
Date: 15 Feb 1996 01:28:49 -0800
Organization: Infinite Monkeys & Co.
Message-ID: <4fuuch$6db@segfault.monkeys.com>
References: <4ej9lb$mpc@fu-berlin.de> <TANMOY.96Feb1164022@qcd.lanl.gov> <4ettr4$al5@der.twinsun.com> <TANMOY.96Feb3105644@qcd.lanl.gov>
NNTP-Posting-Host: segfault.monkeys.com
In article <TANMOY.96Feb3105644@qcd.lanl.gov>,
Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov> wrote:
>
>Note that I have added comp.std.c to the list of newsgroups.
>
>In article <4ettr4$al5@der.twinsun.com> eggert@twinsun.com (Paul
>Eggert) writes:
>
> That being the case, I think it wise for users not to rely on the fine
> points here, and my advice to the GCC implementers is to hold off on
> changing GCC's behavior until the C Standard committee acts.
>
>I, on the other hand, think that the current standard ought to be
>interpreted to mean that truncation is needed. Claiming that it is not
>needed is relying on the fine points. That is purely a personal
>opinion.
No. It is just plain right.
The standard is entirely clear that assignment and casting are two cases
where a compiler is required to change the precision/representation of
an FP value exactly as called for by the type of the cast or by the type
of the expression on the left hand side of the assignment.
There is nothing in the least bit vague about this. Those are the rules.
--
-- Ron Guilmette, Roseville, CA -------- Infinite Monkeys & Co. ------------
---- E-mail: rfg@monkeys.com ----------- Purveyors of Compiler Test Suites -
------ Copyright (c) 1996 by Ronald F. Guilmette; All rights reserved. -----